//
//  QQGoodsModel.m
//  RedWinMall
//
//  Created by HeDianZhao on 2018/8/3.
//  Copyright © 2018年 HeDianZhao. All rights reserved.
//

#import "HGGoodsModel.h"

@implementation HGGoodsModel

+ (NSDictionary *)replacedKeyFromPropertyName
{
    return @{@"goodsId":@"id"};
}

- (void)setSendType:(NSInteger)sendType {
    _sendType = sendType;
    switch (sendType) {
        case 1:
            _sendTypeText = @"快递";
            break;
            
        case 2:
            _sendTypeText = @"自取";
            break;
            
        case 3:
            _sendTypeText = @"平邮";
            break;
        default:
            break;
    }
}

- (void)setState:(NSInteger)state {
    _state = state;
    switch (state) {
            
        case 1:
            _stateText = @"等待卖家付款";
            break;
        case 2:
            _stateText = @"卖家已付款";
            break;
        case 3:
            _stateText = @"交易关闭";
            break;
        case 4:
            _stateText = @"交易成功";
            break;
        case 5:
            _stateText = @"交易成功";
            break;
        default:
            break;
    }
}

@end
